package eu.flexthreading.test;

import org.jcsp.net.*;
import org.jcsp.net.cns.*;

public class NetChanExampleMain2 
{
	public static void main(String[] args) 
	{
		try 
		{
			Node.getInstance().init();
		}
		catch (NodeInitFailedException e) 
		{
			System.out.println("Node init failed\n" + e);
			System.exit(-1);
		}
		new ReadProcess(
		CNS.createNet2One(
				"eu.flexthreading.test.testchannel"
		), "ReaderProcess " + Math.round(Math.random() * 100)).run();
	}
}
